//
//  HWCommentModel.m
//  嗨文
//
//  Created by 响当当 on 2019/3/25.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWCommentModel.h"

@implementation HWCommentModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.bookName = [dic[@"bookName"]    isValidString] ? [NSString stringWithFormat:@"%@",dic[@"bookName"]] :@"";
        self.commentorName = [dic[@"commentorName"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"commentorName"]] :@"";
        self.content = [dic[@"content"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"content"]] :@"";
        self.isVip = [dic[@"isVip"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"isVip"]] :@"";
        self.bookId = [[NSString stringWithFormat:@"%@",dic[@"bookId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"bookId"]] :@"";
        self.commentNum = [[NSString stringWithFormat:@"%@",dic[@"commentNum"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"commentNum"]] :@"";
        self.commentorId = [[NSString stringWithFormat:@"%@",dic[@"commentorId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"commentorId"]] :@"";
        self.agentLevelName = [dic[@"agentLevelName"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"agentLevelName"]] :@"";
        self.createTime = [[NSString stringWithFormat:@"%@",dic[@"createTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"createTime"]] :@"";
        self.commentorHeadImg = [dic[@"commentorHeadImg"] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"commentorHeadImg"]] :@"";
        self.commentId = [[NSString stringWithFormat:@"%@",dic[@"commentId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"commentId"]] :@"";
        self.agentLevelNo = [[NSString stringWithFormat:@"%@",dic[@"agentLevelNo"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"agentLevelNo"]] :@"";
 
    }
    return self;
}
@end
